<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ResizableTest.aspx.cs" Inherits="ResizableTest" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<%@ Register Assembly="GridControl" Namespace="GridControl" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<style type="text/css">
#custom {
    cursor:move;
}
#custom-rzwrap{
    z-index: 100;
}
#custom-rzwrap .x-resizable-handle{
    width:11px;
    height:11px;
    background:transparent url(images/square.gif) no-repeat;
    margin:0px;
}
#custom-rzwrap .x-resizable-handle-east, #custom-rzwrap .x-resizable-handle-west{
    top:45%;
}
#custom-rzwrap .x-resizable-handle-north, #custom-rzwrap .x-resizable-handle-south{
    left:45%;
}
</style>


    <title>Resizable</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
  
    <cc1:ResizableControlExtender runat="server" id="resizable1" TargetControlID="Image1" pinned="true" wrap="true" preserveRatio="true" transparent="false" ></cc1:ResizableControlExtender>
     Resizable Image<br />
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Sample.jpg" Height="212px" Width="283px" />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
      Resizable TextArea:<br />
     <cc1:ResizableControlExtender runat="server" ID="resisable2" TargetControlID="TextBox1" wrap="true"></cc1:ResizableControlExtender> 
        <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
    </div>
    <br />
     This image has 8 way resizing, custom handles, is draggable and 8 way preserved ratio .<br />
     <asp:Image ID="custom" runat="server" ImageUrl="~/Sample.jpg" Height="212px" Width="283px" />
       <cc1:ResizableControlExtender TargetControlID="custom" runat="server" transparent="false" wrap="true" pinned="true" preserveRatio="true" Draggable="true" handles="all"  ></cc1:ResizableControlExtender> 
    </form>
</body>

</html>
